package com.gitee.mars.studyabroad.controller;

import com.gitee.mars.studyabroad.request.AbroadSchoolRequest;
import com.gitee.mars.studyabroad.response.result.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import lombok.AllArgsConstructor;

import java.util.Arrays;

import com.gitee.mars.studyabroad.entity.AbroadSchool;
import com.gitee.mars.studyabroad.service.IAbroadSchoolService;

/**
 * AbroadSchool 控制层
 *
 * @Author wq
 * @Date 2021-04-21
 **/
@RestController
@RequestMapping("/abroadSchool")
@AllArgsConstructor
public class AbroadSchoolController {

    private final IAbroadSchoolService abroadSchoolService;


    /**
     * 列表
     *
     * @param request request
     * @return R
     */
    @PostMapping("/list")
    public R list(@RequestBody AbroadSchoolRequest request) {
        return R.success(abroadSchoolService.list(request));
    }




}